public class Rebar {

    private static final String MATERIAL_TYPE_WIRE = "wire";
    private static final String MATERIAL_TYPE_BAR = "bar";
    private static final String MATERIAL_TYPE_I_BEAM = "i_beam";
    private static final String MATERIAL_TYPE_PLATE = "plate";
    private static final String MATERIAL_TYPE_PIPE = "pipe";
    private static final String MATERIAL_TYPE_ANGLEIRON = "angleIron";


    private String materialType;





    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public String getMaterialType() {
        return materialType;
    }

    /**
     * 线材
     * @return
     */
    public boolean isWireRod() {
        return MATERIAL_TYPE_WIRE.equals(materialType);
    }

    /**
     * 棒材
     * @return
     */
    public boolean isBar() {
        return MATERIAL_TYPE_BAR.equals(materialType);
    }

    /**
     * 工字钢
     * @return
     */
    public boolean isIbeam() {
        return MATERIAL_TYPE_I_BEAM.equals(materialType);
    }

    /**
     * 钢管
     * @return
     */
    public boolean isPipe() {
        return MATERIAL_TYPE_PIPE.equals(materialType);
    }

    /**
     * 钢板
     * @return
     */
    public boolean isPlate() {
        return MATERIAL_TYPE_PLATE.equals(materialType);
    }

    /**
     * 钢板
     * @return
     */
    public boolean isAngleIron() {
        return MATERIAL_TYPE_ANGLEIRON.equals(materialType);
    }


}